﻿@{
    Layout = "~/Views/Generic/WebConfig.cshtml";
}

@section custom
{
    <connectionStrings>
		<add name="su" connectionString="server=.;database=SlickUploadTest;uid=sa;pwd=xxx"/>
    </connectionStrings>
    <slickUpload>
        <uploadProfiles>
            <add name="default">
                <uploadStreamProvider type="File" location="~/Files" existingAction="Overwrite"/>
            </add>
            <add name="slick">
                <uploadStreamProvider type="File" location="~/SlickFiles" existingAction="Overwrite"/>
            </add>
            <add name="clientApi">
                <uploadStreamProvider type="File" location="~/ClientApiFiles" existingAction="Overwrite"/>
            </add>
            <add name="customFileName">
                <uploadStreamProvider type="@(ViewBag.Project.Name).Storage.CustomFileNameUploadStreamProvider, @(ViewBag.Project.Name)" location="~/CustomFileNameFiles" existingAction="Overwrite"/>
            </add>
            <add name="customUploadStreamProvider">
                <uploadStreamProvider type="@(ViewBag.Project.Name).Storage.ZipUploadStreamProvider, @(ViewBag.Project.Name)" location="~/CustomUploadStreamProviderFiles" existingAction="Overwrite"/>
            </add>
            <add name="postProcess">
                <uploadStreamProvider type="File" location="~/PostProcessFiles" existingAction="Overwrite"/>
            </add>
            <add name="sqlServer">
                <uploadStreamProvider type="SqlClient" connectionStringName="su" table="SlickUploadFile" keyField="FileId" dataField="Data" fileNameField="FileName" dataType="Image" />
            </add>
            <add name="customSqlServer">
                <uploadStreamProvider type="@(ViewBag.Project.Name).Storage.CustomSqlUploadStreamProvider, @(ViewBag.Project.Name)" connectionStringName="su" table="SlickUploadFileCustom" keyField="FileId" dataField="Data" fileNameField="FileName" dataType="Image" />
            </add>
            <add name="multiple">
                <uploadStreamProvider type="File" location="~/MultipleFiles" existingAction="Overwrite"/>
            </add>
            <add name="s3">
                <uploadStreamProvider type="S3" accessKeyId="" secretAccessKey="" bucketName="" />
            </add>
            <add name="validation">
                <uploadStreamProvider type="File" location="~/ValidationFiles" existingAction="Overwrite"/>
            </add>
        </uploadProfiles>
    </slickUpload>
}